home *** CD-ROM | disk | FTP | other *** search
/ Draw 3 / Draw 3.iso / AOL90 / COMP01.000 / %AFIXPATH% / 10091DAFUS.udp / out / flow_func.js < prev    next >
Encoding:
JavaScript  |  2004-09-27  |  971 b   |  33 lines

  1. // ADP Auto Fix (Functions) flow
  2. // Copyright (c) GTek Technologies Ltd.
  3.  
  4. var g_oAcs = new ADPPlugin("Name=AdpDiag,DllName=Acs");
  5.  
  6. function stopAcs() {
  7.    g_oAcs.getObj().StopACS();
  8. }
  9.  
  10. function deleteAcs() {
  11.    coachPath = g_oAdp.ChangeString(g_sCoachOSAppData).toLowerCase();
  12.    acsPath = coachPath.substring(0,coachPath.indexOf("aolcoach")) + "acs\\1.0";
  13.    folderCount = g_oReg.getObj().CountFolderElements(acsPath + "\\*.*");
  14.    folderFiles = new Array(folderCount);
  15.     
  16.    for (i=0;i<folderCount;i++) {
  17.       folderFiles[i] = acsPath + "\\" + g_oReg.getObj().FolderElementAt(acsPath + "\\*.*",i);
  18.    }
  19.       
  20.    for (f=0;f<folderFiles.length;f++) {
  21.       if (!g_oReg.getObj().DeleteFile(folderFiles[f])) {
  22.          try {
  23.             g_oReg.getObj().DeleteFolder(folderFiles[f], true);
  24.          } catch (e) {
  25.             g_sJsResult = "SelfExit";
  26.          }
  27.       }
  28.    }     
  29. }
  30.  
  31. function unloadAcs(){
  32.    g_oAcs.getObj().UnloadAcs();
  33. }